<include file="public/min-header" />
<div class="wrapper">
    <include file="public/breadcrumb"/>
    <section class="content ">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回管理员列表"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 配置锁屏</h3>
                </div>
                <div class="panel-body ">
                    <!--表单数据-->
                    <form method="post" id="adminHandle" action="{:U('lockconfiguration/index')}">
                        <!--通用信息-->
                        <div class="tab-content col-md-10">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td class="col-sm-2">倒计时5分钟的大字：</td>
                                        <td class="col-sm-8">
                                            <input type="text" class="form-control" name="big_details" value="{$row.big_details|default=''}" >

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>倒计时5分钟的小字：</td>
                                        <td >
                                            <input type="text" class="form-control" name="min_details" value="{$row.min_details|default=''}" >

                                        </td>
                                    </tr>
                                    <tr>
                                        <td><span style="color:#F00;">*</span>无订单背景：</td>

                                        <td class="col-sm-8">

                                            <div class="col-sm-4">

                                                <input type="text" class="form-control" style="width:350px;margin-left:-15px;" name="default_img" value="{$row.default_img|default=''}" id="default_img" >

                                            </div>

                                            <div class="col-sm-4">

                                                <input type="button" class="btn btn-default" onClick="GetUploadify(1,'default_img','default_img','')"  value="无订单背景"/>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td><span style="color:#F00;">*</span>订单前5分钟背景：</td>

                                        <td class="col-sm-8">

                                            <div class="col-sm-4">

                                                <input type="text" class="form-control" style="width:350px;margin-left:-15px;" name="before_img" value="{$row.before_img|default=''}" id="before_img" >

                                            </div>

                                            <div class="col-sm-4">

                                                <input type="button" class="btn btn-default" onClick="GetUploadify(1,'before_img','before_img','')"  value="上传头像图"/>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td><span style="color:#F00;">*</span>订单后5分钟背景：</td>

                                        <td class="col-sm-8">

                                            <div class="col-sm-4">

                                                <input type="text" class="form-control" style="width:350px;margin-left:-15px;" name="after_img" value="{$row.after_img|default=''}" id="after_img" >

                                            </div>

                                            <div class="col-sm-4">

                                                <input type="button" class="btn btn-default" onClick="GetUploadify(1,'after_img','after_img','')"  value="上传头像图"/>

                                            </div>

                                        </td>
                                    </tr>
                                    <tfoot>
                                    <tr>
                                        <td><input type="hidden" name="act" value="{$act}">
                                            <input type="hidden" name="admin_id" value="{$info.admin_id}">
                                        </td>
                                        <td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit(){
        $.post("/mingteng/lockconfiguration/index",$('#adminHandle').serialize(),function(res){
            if(res.code==1){
                layer.msg(res.msg,{time:1500},function(){
                    window.location.href = res.url;
                })
            }else{
                layer.msg(res.msg,{time:1500})
            }
        })
    }
</script>
</body>
</html>